<!--#include file="Config.asp" -->
<!--#include file="HeadTop.asp"-->
<script language="javascript">
	function CheckForm()
	{
		if(!checkLength("WorkExpBeginDate" , "开始时间" , 1 , 20))
			return false;
		if(!checkLength("WorkExpEndDate" , "结束时间" , 0 , 20))
			return false;
		if(!checkLength("WorkExpCompanyName" , "公司名称" , 1 , 100))
			return false;
		if(PerForm.WorkExpCompanyNature.value == "")
		{
			alert("请选择公司性质");
			return false;
		}
		if(PerForm.WorkExpCompanyIndustry.value == "")
		{
			alert("请选择所属行业");
			return false;
		}
		if(!checkLength("WorkExpPost" , "所在部门" , 1 , 50))
			return false;
		if(!checkLength("WorkExpJobs" , "职位名称" , 1 , 50))
			return false;
		if(!checkLength("WorkExpNote" , "工作描述" , 0 , 1000))
			return false;
		if(!checkLength("WorkExpLeave" , "离职原因" , 1 , 100))
			return false;
		return true;
	}
</script>
<%
If Request.Form <> "" Then
	WorkExpBeginDate =Trim(Request.Form("WorkExpBeginDate"))
	WorkExpEndDate =Trim(Request.Form("WorkExpEndDate"))
	WorkExpCompanyName =Trim(Request.Form("WorkExpCompanyName"))
	WorkExpCompanyNature =Trim(Request.Form("WorkExpCompanyNature"))
	WorkExpCompanyIndustry =Trim(Request.Form("WorkExpCompanyIndustry"))
	WorkExpPost =Trim(Request.Form("WorkExpPost"))
	WorkExpJobs =Trim(Request.Form("WorkExpJobs"))
	WorkExpNote =Trim(Request.Form("WorkExpNote"))
	WorkExpLeave =Trim(Request.Form("WorkExpLeave"))
SQL="insert into WorkExpTbl (WorkExpBeginDate , WorkExpEndDate , WorkExpCompanyName , WorkExpCompanyNature , WorkExpCompanyIndustry , WorkExpPost , WorkExpJobs , WorkExpNote , WorkExpLeave , PerId) values ('"& WorkExpBeginDate &"' , '"& WorkExpEndDate &"' , '"& WorkExpCompanyName &"' , '"& WorkExpCompanyNature &"' , '"& WorkExpCompanyIndustry &"' , '"& WorkExpPost &"' , '"& WorkExpJobs &"' , '"& WorkExpNote &"' , '"& WorkExpLeave &"' , "& session("AnyPIM_userID") &")"
	Conn.Execute(SQL)

	'Conn.Execute("update Users set gzFlag = '1' where PerId = "& session("AnyPIM_userID"))

response.redirect "WorkExperience.asp"

End If

%>


<!-- 工作经历开始 -->
<TABLE class="table table-condensed">
<tr>
<td>
<a href="Work_Add.asp?FbcID=41"><img src="img/some_Add.png" border="0" alt=""><strong>【添加工作经历】</strong></a>
</td>
</tr>
</table>
<TABLE class="table table-condensed">

<form id="PerForm" name="PerForm" method="post" action="Work_add.asp" >
<tr bgcolor='#ddeeff'>
	<td>时间从：</td>
	<td bgcolor='#f6f6f6'>

<INPUT TYPE="text" NAME="WorkExpBeginDate" value='<%=strdate%>' class="Wdate" onClick="WdatePicker()">
		到
		<input name="WorkExpEndDate" type="text" class="Wdate" onClick="WdatePicker()" value='' size="16"/>
	【留空表示至今】</td>
</tr>
<tr>
	<td bgcolor='#ddeeff' >公司名称：</td>
	<td ><input name="WorkExpCompanyName" type="text" id="WorkExpCompanyName" value='' size="50"/>
<select name="WorkExpCompanyNature"id="WorkExpCompanyNature">
		<%
						Rs.Open "select * from CompanyNatureTbl order by CompanyNatureId asc" , Conn , 1 , 1
						Do While Not Rs.Eof
							Response.Write("<option value="""& int(Rs("CompanyNatureId")) &""">"& Rs("CompanyNatureName") &"</option>")
						Rs.MoveNext
						Loop
						Rs.Close
						%>
	</select>
<select name="WorkExpCompanyIndustry"id="WorkExpCompanyIndustry">
		<%
						Rs.Open "select * from PositionTbl where PositionKey = 0 order by PositionId asc" , Conn , 1 , 1
						Do While Not Rs.Eof
							Response.Write("<option value="""& Int(Rs("PositionId")) &""">"& Rs("PositionName") &"</option>")
						Rs.MoveNext
						Loop
						Rs.Close
						%>
	</select>
	</td>
</tr>
<tr>
	<td bgcolor='#ddeeff'>所在部门：</td>
	<td ><input name="WorkExpPost" type="text" id="WorkExpPost" value='' size="30"/>
	最终职位：<input name="WorkExpJobs" type="text" id="WorkExpJobs" value='' size="30"/></td>
</tr>
<tr>
	<td  bgcolor='#ddeeff'>工作描述：</td>
	<td >
<!--  HTML编辑器 eWebEditor V9.20精简版引用------------->
<textarea name="WorkExpNote" style="display:none" id="WorkExpNote" >请详细描述您的职责范围、工作任务以及取得的成绩等。</textarea>
<IFRAME ID="eWebEditor1" src="_Editor/ewebeditor.asp?id=WorkExpNote&style=s_exampleremote" FRAMEBORDER="0" scrolling="no" width="100%" HEIGHT="350"></iframe>
<!--  HTML编辑器 eWebEditor V9.20精简版引用-------------></td>
</tr>
<tr>
	<td  bgcolor='#ddeeff'>离职原因：</td>
	<td ><input name="WorkExpLeave" type="text" id="WorkExpLeave" value='个人发展' size="60"/>
		简明扼要</td>
</tr>
<tr>
	<td >&nbsp;</td>
	<td >
	<input type="submit" name="Submit" value="添加" />
	<input type="reset" name="Submit" value="重置" /></td>
</tr>
</table>
</form>
<!-- #include file="foot.asp" -->
